home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / interapplication comm / finderlaunch / finderlaunch.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-23  |  1.6 KB  |  45 lines

  1. /*    File:        FinderLaunch.h
  2.     
  3.     Description: 
  4.              A routine for sending an open documents Apple event to the
  5.             finder.  This routine provides functionality equivalent to
  6.             selecting a document/file/application and choosing the
  7.             open command in the Finder's file menu.  
  8.  
  9.     Author:    John Montbriand
  10.  
  11.     Copyright: 
  12.             Copyright © 1999 by Apple Computer, Inc.
  13.             All rights reserved worldwide.
  14.     
  15.     Disclaimer:
  16.             You may incorporate this sample code into your applications without
  17.             restriction, though the sample code has been provided "AS IS" and the
  18.             responsibility for its operation is 100% yours.  However, what you are
  19.             not permitted to do is to redistribute the source as "DSC Sample Code"
  20.             after having made changes. If you're going to re-distribute the source,
  21.             we require that you make it clear in the source that the code was
  22.             descended from Apple Sample Code, but that you've made changes.
  23.     
  24.     Change History (most recent first):
  25.             9/13/99 created by John Montbriand
  26. */
  27.  
  28. #ifndef __FINDERLAUNCH__
  29. #define __FINDERLAUNCH__
  30.  
  31. #include <Types.h>
  32. #include <Files.h>
  33.  
  34. /* FinderLaunch converts a list of nTargets FSSpec records pointed to by the
  35.     targetList parameter and converts the list to an apple event.  It then
  36.     sends that event to the Finder.  The array of FSSpec records pointed
  37.     to by the targetList parameter may contain references to files, folders,
  38.     or applications.  The net effect of this command is equivalent to the
  39.     user selecting an icon in one of the Finder's windows and then choosing
  40.     the open command from the Finder's file menu. */
  41. OSErr FinderLaunch(long nTargets, FSSpec *targetList);
  42.  
  43.  
  44. #endif
  45.